#!/bin/sh

. ./test_helper.sh

mkdir -p "$AUTOPKGTEST_TMP/pkg/debian"
cd       "$AUTOPKGTEST_TMP/pkg"

fake_changelog > debian/changelog

{
    fake_control_header 'dh-sequence-builtusing, dpkg-dev'

    fake_control_package foo all '${dh-builtusing:dpkg-dev}'

} > debian/control

echo '#!/usr/bin/make -f
%:
	dh $@
' > debian/rules
chmod +x debian/rules

DEB_RULES_REQUIRES_ROOT=no debian/rules binary

check_control foo dpkg
